import Vue from 'vue'
// import store from '../store/index'
import VueRouter from 'vue-router'
// import index from '../views/index'
import userRole from "../views/userRole";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'userRole',
    component:userRole
  },
  {
    path:'/chatPage',
    name:'chatPage',
    component:()=>import('@/views/chatPage')
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
